<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<script type="text/javascript" src="<%=basePath %>js/easyui/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="<%=basePath %>js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=basePath %>js/easyui/locale/easyui-lang-zh_CN.js"></script>
<link rel="styleSheet" type="text/css" href="<%=basePath %>js/easyui/themes/icon.css"/>
<link rel="styleSheet" type="text/css" href="<%=basePath %>js/easyui/themes/default/easyui.css"/>
<style>
<!--
#data_title{
font-weight:bold;
}
#syDiv{
padding-left:10px;
}
-->
</style>
<div>
<table id="projects_teacher"  class="table  table-bordered  table-condensed table-hover">
<thead>
			<tr id="data_title">
				<th>题目名称</th>
				<th>学生</th>
				<th>论文</th>
				<th>指导教师</th>
				<th>操作</th>
			</tr>
			</thead>
			<tbody>
			<c:forEach items="${projects}" var="p">
				<tr>
					<td>${p.name }</td>
					<td>${p.student.name }</td>
					<td>
						<c:if test="${p.essayPath!=null }">
							<a href="${p.essayPath }" target="_blank" >查看论文</a>
						</c:if>
						<c:if test="${p.essayPath==null }">
							该学生尚未上传论文
						</c:if>
					</td>
					<td>${p.teacher.name }</td>
					<td><a href="javascript:;" class="sy" name="${p.id }" >评阅</a></td>
				</tr>
			</c:forEach>
			</tbody>
	</table>
	
</div>
<div id="syDiv"  modal=true resizable=false collapsible=false  style="width:400px;height:300px;" shadow=false
minimizable=false maximizable=false draggable=false class="easyui-window" closed=true>
<input type="hidden" name="projId" id="projId">
		审阅结果:<input type="radio" name="status" value="y" class="yn" checked>通过&nbsp;&nbsp;&nbsp;
		<input type="radio" name="status" value="n" class="yn">不通过
		<input type="hidden" id="status" >
		<br/>
		<br/>
		<div id="reasonDiv">
		理由:<span class="reasonTopic" style="display:none;color:red;">请输入理由</span>
		<textarea rows="3" cols="" style="width:100%;" id="reason" name="reason"></textarea>
		</div>
		<input type="button" value="提交" id="subSy" class="btn btn-info">
</div>